package com.onlyxiahui.common.data.common.data;

import java.util.Collection;

/**
 * 
 * 
 * 分页结果<br>
 * Date 2020-01-14 09:07:42<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @param <C>
 * @since 1.0.0
 */

public class PageResult<C extends Collection<?>> {

	/**
	 * 分页信息
	 */
	Page page;
	/**
	 * 结果集合
	 */
	C items;

	public PageResult() {
	}

	public PageResult(Page page) {
		this(page, null);
	}

	public PageResult(Page page, C items) {
		this.page = page;
		this.items = items;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public C getItems() {
		return items;
	}

	public void setItems(C items) {
		this.items = items;
	}
}
